#include "av_logic_manager.h"
#include <thread>
#include <csignal>
#include <unistd.h>
#include <chrono>
using namespace lcf;
using namespace std;
static bool gExit = false;
static void signalHandler(int signal)
{
    gExit = true;
    return;
}

int main()
{
    // 注册 Ctrl+C 信号处理函数
    std::signal(SIGINT, signalHandler);
    AVLogicManager::GetInstance().Start();

    while (!gExit)
    {
        sleep(1U);
    }

    AVLogicManager::GetInstance().Stop();
    return 0;
}
